home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>1</cardCount>
- <cardID>3026</cardID>
- <listID>3827</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>416</width>
- <height>240</height>
- </cardSize>
- <script>-- WindowsMenu v 1.0
- -- Copyright © 1991
- -- Paul M. Lemieux
- -- 905 Union Street
- -- Cary, NC 27511
- -- GEnie: P.Lemieux2
- -- AOL: PaulLX
-
- on openstack
- AddWindowsMenu
- pass openstack
- end openstack
-
- on resume
- AddWindowsMenu
- pass resume
- end resume
-
- on resumeSTack
- AddWindowsMenu
- pass resumeStack
- end resumeStack
-
- on suspendStack
- if there is a menu "windows" then
- delete menu "windows"
- end if
- pass suspendStack
- end suspendStack
-
- on closeStack
- if there is a menu "windows" then
- delete menu "windows"
- end if
- pass closeStack
- end closeStack
-
- on shrinkit
- Global SaveRect
- put the rect of the card window into SaveRect
- -- if you don't like the size of the shrunk window, then change
- -- the paramters of the rectangle defined in the following line
- set the rect of the card window to 100,100,350,250
- end shrinkit
-
- on AddWindowsMenu
- set cursor to watch
- if there is no menu "Windows" then
- create menu "Windows"
- end if
- put windowMenuItems() into menu "Windows" with menuMsg WindowMenuMsgs()
- end AddWindowsMenu
-
- function windowMenuItems -- ∆
- global numberOfWindows,stackCSV
- -- get the list of open windows, rememgering that 1-8 are HC's
- -- internal windows, such as the message box
- set cursor to watch
- put empty into stackCSV
- put last item of line 8 of the windows after stackCSV
- repeat with counter = 9 to number of lines of the windows
- put ","&last item of line counter of the windows after stackCSV
- end repeat
- return "Shrink,-,"&stackCSV
- end windowMenuItems
-
- on goScript theStackWindow
- if theStackWindow is in the windows then
- show window theStackWindow
- else
- go stack theStackWindow in new window
- end if
- end goScript
-
- function WindowMenuMsgs
- -- this function needs to be called every time the list of
- -- windows changes. That is why I trapped so many of the handlers
- -- that are called when the frontmost stack is changed.
- global numberOfWindows, stackCSV
- put empty into windowNavigate
- repeat with counter = 1 to number of items of stackCSV
- put ","&"goScript(""e&item counter of stackCSV"e&")" after windowNavigate
- end repeat
- return "shrinkit,"&windowNavigate
- end WindowMenuMsgs
- </script>
- <background id="2757" file="background_2757.xml" name="" />
- <card id="3026" file="card_3026.xml" marked="false" name="" owner="2757" />
- </stack>
-